#!/bin/bash

function Start_control(){
[ -e /tmp/xizao.fifo ] || mkfifo /tmp/xizao.fifo
exec 110<>/tmp/xizao.fifo
trap "exec 110>&-;exec 110<&-;rm -rf /tmp/xizao.fifo" 2 15
}

Cont_add(){
	let Num_thread=$1
	for (( i=0; i<$Num_thread; i++ ));
    do
        echo >& 110
    done
}
Task_start(){
	read -u 110
}

Task_done(){
	echo >& 110	
}
